home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doodle_d.swf / scripts / frame_4 / DoAction_6.as < prev    next >
Text File  |  2013-04-24  |  351b  |  17 lines

  1. function turn()
  2. {
  3.    ship._rotation = dir;
  4.    if(control)
  5.    {
  6.       degrees = dir;
  7.       degrees -= 90;
  8.       radians = degrees * rad;
  9.       statMovX = 10 * cos(radians);
  10.       statMovY = 10 * sin(radians);
  11.       thrustDX = speed * cos(radians);
  12.       thrustDY = speed * sin(radians);
  13.       dx = thrustDX;
  14.       dy = thrustDY;
  15.    }
  16. }
  17.